package com.old.people.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.old.people.service.LoginService;

@RestController
public class LoginController {// 登录
//	@Autowired
//	private DiscoveryClient client;//显示服务信息
	@Autowired
	private LoginService loginService;

	@RequestMapping("/oldpeopleservice/login")
	public boolean login(@RequestParam("account_id") String account_id,
			@RequestParam("account_password") String account_password,
			@RequestParam("account_type") String account_type) {
		return loginService.login(account_id, account_password, account_type);
	}
}
